<script>
	$(document).ready(function(){
		// onchange
		// $('#kd_pt').change(function(){
			// $('#kd_fakultas').load(base_url+'prosedur/getFakultasbyUniversitas/'+$('#kd_pt').val());
		// });
		// $('#kd_fakultas').change(function(){
			// $('#kd_prodi').load(base_url+'prosedur/getProdibyFakultas/'+$('#kd_fakultas').val());
		// });
	});
</script>

<form id="form1" method="post" action="some_action" enctype="multipart/form-data" style="margin:10px;">
	<input type="hidden" name="aksi" id="aksi" value="<?=$aksi?>">
	<input type="hidden" name="kode" id="kode" value="<?=$kode?>">
	<div class="fitem" >
		<label style="width:160px">Tahun Ajaran </label>: 
		<input name="id_tahunajaran" size="10" maxlength="4" value="<?=$id_tahunajaran?>" <?=$aksi=='edit'?'Readonly':''?>>
	</div>
	<div class="fitem" >
		<label style="width:160px">Semester </label>: 
		<select name="semester" <?=$aksi=='edit'?'Readonly':''?>>
			<option value="1" <?=$semester=='1'?'Selected':''?>>Ganjil</option>
			<option value="2" <?=$semester=='2'?'Selected':''?>>Genap</option>
			<option value="3" <?=$semester=='3'?'Selected':''?>>SP</option>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:160px">Nama Universitas </label>: 
		<select id="kd_pt" name="kd_pt" style="width:200px;" <?=$aksi=='edit'?'Readonly':''?>>
			<?=$this->mdl_prosedur->OptionUniversitas(array('value'=>$kd_pt));?>
		</select>
	</div>
	<div class="fitem" >
		<label style="width:160px">Fakultas</label>: 
		<select id="kd_fakultas" name="kd_fakultas" style="width:200px;" <?=$aksi=='edit'?'Readonly':''?>>
			<?=$this->mdl_prosedur->OptionFakultas(array('value'=>$kd_fakultas));?>
		</select>
	</div>
	<?if($aksi=='edit'){?>
	<div class="fitem">
		<label style="width:160px;">Prodi</label>: 
		<select id="kd_prodi" name="kd_prodi" style="width:200px;" <?=$aksi=='edit'?'Readonly':''?>>
			<?=$this->mdl_prosedur->OptionProdi(array('kd_fakultas'=>$kd_fakultas, 'value'=>$kd_prodi));?>
		</select>
	</div>
	<?}?>
	<div class="fitem" >
		<label style="width:160px">Nama Tahun </label>: 
		<input name="Nama" size="40" value="<?=$Nama?>">
	</div>
	<br>
	<div class="fitem" >
		<label style="width:160px"><b>KRS</b> </label>: 
		<input class="easyui-datebox" name="TglKRSMulai" size="13" value="<?=$TglKRSMulai?>" id="TglKRSMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglKRSSelesai" size="13" value="<?=$TglKRSSelesai?>" id="TglKRSSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem" >
		<label style="width:160px"><b>KRS (Online)</b> </label>: 
		<input class="easyui-datebox" name="TglKRSOnlineMulai" size="13" value="<?=$TglKRSOnlineMulai?>" id="TglKRSOnlineMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglKRSOnlineSelesai" size="13" value="<?=$TglKRSOnlineSelesai?>" id="TglKRSOnlineSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem" >
		<label style="width:160px"><b>KPRS</b> </label>: 
		<input class="easyui-datebox" name="TglUbahKRSMulai" size="13" value="<?=$TglUbahKRSMulai?>" id="TglUbahKRSMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglUbahKRSSelesai" size="13" value="<?=$TglUbahKRSSelesai?>" id="TglUbahKRSSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	
	<div class="fitem" style="display:none;">
		<label style="width:160px">Akhir Cetak KSS-KPRS</label>: 
		<input name="TglCetakKSS1" size="13" value="<?=$TglCetakKSS1?>" id="TglCetakKSS1" >
		&nbsp;s.d&nbsp;
		<input name="TglCetakKSS2" size="13" value="<?=$TglCetakKSS2?>" id="TglCetakKSS2" >
	</div>
	<div class="fitem"  style="display:none;">
		<label style="width:160px">Batas Pengajuan Cuti</label>: 
		<input name="TglCuti" size="13" value="<?=$TglCuti?>" id="TglCuti">
	</div>
	<div class="fitem"  style="display:none;">
		<label style="width:160px">Batas Mundur Kuliah</label>: 
		<input name="TglMundur" size="13" value="<?=$TglMundur?>" id="TglMundur" >
	</div>
	<br>
	<div class="fitem" >
		<label style="width:160px">Masa Pembayaran</label>: 
		<input class="easyui-datebox" name="TglBayarMulai" size="13" value="<?=$TglBayarMulai?>" id="TglBayarMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglBayarSelesai" size="13" value="<?=$TglBayarSelesai?>" id="TglBayarSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem"  style="display:none;">
		<label style="width:286px">Batas Pengambilan Kelebihan Uang Kuliah</label>: 
		<input name="TglKembaliUangKuliah" size="13" value="<?=$TglKembaliUangKuliah?>" id="TglKembaliUangKuliah" >
	</div>
	<br>
	<div class="fitem" >
		<label style="width:160px">Tanggal Kuliah</label>: 
		<input class="easyui-datebox" name="TglKuliahMulai" size="13" value="<?=$TglKuliahMulai?>" id="TglKuliahMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglKuliahSelesai" size="13" value="<?=$TglKuliahSelesai?>" id="TglKuliahSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem" >
		<label style="width:160px">Tanggal UTS</label>: 
		<input class="easyui-datebox" name="TglUTSMulai" size="13" value="<?=$TglUTSMulai?>" id="TglUTSMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglUTSSelesai" size="13" value="<?=$TglUTSSelesai?>" id="TglUTSSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem" >
		<label style="width:160px">Tanggal UAS</label>: 
		<input class="easyui-datebox" name="TglUASMulai" size="13" value="<?=$TglUASMulai?>" id="TglUASMulai" data-options="formatter:DateFormatter, parser:DateParser">
		&nbsp;s.d&nbsp;
		<input class="easyui-datebox" name="TglUASSelesai" size="13" value="<?=$TglUASSelesai?>" id="TglUASSelesai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<br>
	<div class="fitem" >
		<label style="width:160px">Akhir Penilaian</label>: 
		<input class="easyui-datebox" name="TglNilai" size="13" value="<?=$TglNilai?>" id="TglNilai" data-options="formatter:DateFormatter, parser:DateParser">
	</div>
	<div class="fitem"  style="display:none;">
		<label style="width:160px">Tanggal Habis KSS</label>: 
		<input name="TglAkhirKSS" size="13" value="<?=$TglAkhirKSS?>" id="TglAkhirKSS" >
	</div>
	<div class="fitem">
		<label style="width:160px;vertical-align:top;">Catatan</label> 
		<textarea name="Catatan" id="Catatan" cols="25" rows="3"><?=$Catatan?></textarea>
	</div>
	<div class="fitem" >
		<label style="width:160px">Status</label>: 
		<input type="checkbox" name="Status" <?=$Status=='A'?'Checked="checked"':''?>/>&nbsp;Aktif
	</div>
	
</form>

	

